Availability |
2.0 |
Description |
Gets the time when the file was last modified. |
Arguments |
fileURL |
|
The argument is the file for which you are checking the last-modified time, expressed as a file:// URL. |
Returns |
A string containing a hexidecimal number that represents the number of time units that have elapsed since some base time. The exact meaning of time units and base time is platform dependent; in Windows, for example, a time unit is 100ns, and the base time is January 1st, 1600. |
Example |
It's most useful to call the function twice and compare the return values because the value returned by this function is platform-dependent and is not a recognizable date and time. For example, the following code gets the modification dates of file1.txt and file2.txt and displays an alert box indicating which file is newer. |
 |
|